package sa.com.sure.ejtimaa.model;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

public class MeetingItemInfo implements Externalizable {

	private int MeetingItemID;
	private int MeetingID;
	private String Title;
	private String Description;
	
	public MeetingItemInfo(int MeetingItemID,int MeetingID, String Title , String Description){
    	this.MeetingItemID = MeetingItemID;
    	this.MeetingID = MeetingID;
    	this.Title = Title;
    	this.Description = Description;
	}
	
	public MeetingItemInfo(){		
    	this.MeetingItemID = -1;
    	this.MeetingID = -1;
    	this.Title = "";
    	this.Description = "";
	}
	
	public int GetMeetingItemID() {
		return MeetingItemID;
	}

	public void SetMeetingItemID(int MeetingItemID) {
		this.MeetingItemID = MeetingItemID;
	}
	
	public int GetMeetingID() {
		return MeetingID;
	}

	public void SetMeetingID(int MeetingID) {
		this.MeetingID = MeetingID;
	}
	
	
	public String GetTitle() {
		return Title;
	}

	public void SetTitle(String Title) {
		this.Title = Title;
	}
	
	
	public String GetDescription() {
		return Description;
	}

	public void SetDescription(String Description) {
		this.Description = Description;
	}
	
	
	@Override
	public String toString() {
		return this.Title;
	}

	public void readExternal(ObjectInput input) throws IOException,
			ClassNotFoundException {
		MeetingItemID = input.readInt();
		MeetingID = input.readInt();
		Title = (String) input.readObject();
		Description = (String) input.readObject();
		
	}

	public void writeExternal(ObjectOutput output) throws IOException {
		output.writeInt(MeetingItemID);
		output.writeInt(MeetingID);
		output.writeObject(Title);
		output.writeObject(Description);
		
	} 
}
